<h1>Comments List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Email</th>
      <th>Web url</th>
      <th>Name</th>
      <th>Article</th>
      <th>Total votes</th>
      <th>Total users</th>
      <th>Content</th>
      <th>Is abused</th>
      <th>Created at</th>
      <th>Updated at</th>
      <th>Is active</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($comments as $comment): ?>
    <tr>
      <td><a href="<?php echo url_for('Comment/edit?id='.$comment->getId()) ?>"><?php echo $comment->getId() ?></a></td>
      <td><?php echo $comment->getEmailId() ?></td>
      <td><?php echo $comment->getWebUrl() ?></td>
      <td><?php echo $comment->getName() ?></td>
      <td><?php echo $comment->getArticleId() ?></td>
      <td><?php echo $comment->getTotalVotes() ?></td>
      <td><?php echo $comment->getTotalUsers() ?></td>
      <td><?php echo $comment->getContent() ?></td>
      <td><?php echo $comment->getIsAbused() ?></td>
      <td><?php echo $comment->getCreatedAt() ?></td>
      <td><?php echo $comment->getUpdatedAt() ?></td>
      <td><?php echo $comment->getIsActive() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('Comment/new') ?>">New</a>
